#ifndef ACCOUNTPARSER_H
#define ACCOUNTPARSER_H

#include <QObject>


namespace Account {

class Event;
class Parser : public QObject
{
    Q_OBJECT
public:
    enum Type {
        OnlineStatysType,
        NewestChatSessionsType,
        Unknown
    };

public:
    explicit Parser(QObject *parent = 0);

public:
    virtual Type type() const = 0;
    virtual Event *parse(const QString &commandId, const QVariant &data) = 0;
};

} // namespace Account

#endif // ACCOUNTPARSER_H
